function varargout = ECG(varargin)
% Help function for ECG
%       
% ECG is a call function for GUI to select
% 1. Engineering Version GUI
%      or
% 2. Medical Version GUI
%
%--------------------------      
% Engineering Version GUI
%--------------------------
% Engineering Version GUI is for medical engineers or other engineers from
% other stream to optimize or improve the ECG GUI, investigate if there
% are any problems in hardware and user parts.
%
% Medical engineers could also modified and inspired by the Engineering
% Version for further ECG algorithms and physiological experiments
% development
%
%--------------------------
% Medical Version GUI
%--------------------------
%
% Medical Version GUI is for medical and clinical user to use.
%
% Less fancy design and more user-friendly data collection techniques and 
% design are implemented.
%
% Copyright: Group 8
% Modified at 20th Oct 2010
%-------------------------------------------------------------------------

% Last Modified by GUIDE v2.5 22-Oct-2010 19:02:29

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @ECG_OpeningFcn, ...
                   'gui_OutputFcn',  @ECG_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before ECG is made visible.
function ECG_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to ECG (see VARARGIN)

% Choose default command line output for ECG
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes ECG wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = ECG_OutputFcn(hObject, eventdata, handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes on button press in med.
function med_Callback(hObject, eventdata, handles)
% hObject    handle to med (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
h2 = GUI2;

% --- Executes on button press in eng.
function eng_Callback(hObject, eventdata, handles)
% hObject    handle to eng (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
h1 = GUI;


% --- Executes during object creation, after setting all properties.
function eng_CreateFcn(hObject, eventdata, handles)
% hObject    handle to eng (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called


% --- Executes during object creation, after setting all properties.
function med_CreateFcn(hObject, eventdata, handles)
% hObject    handle to med (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called
